#include <stdio.h>
int main() {
	int arr[] = {1, 2, 3, 4, 5};
	FILE *p_file = fopen("a.bin", "wb");
	if(p_file) {
		int size = 0;
		size = fwrite(arr, sizeof(int), 5, p_file);
		printf("使用了%d个存储区\n", size);
		fclose(p_file);
		p_file = NULL;
	}
	return 0;
}
